<div class="am-u-sm-12 widget main-w" >
	<ol class="am-breadcrumb">
		<li><a href="{:url('/admin/index')}">首页</a></li>
		<li><a href="{:url('/admin/car/index')}">业务管理</a></li>
		<li><a href="{:url('index')}">乘客管理</a></li>
		<li class="am-active">乘客钱包</li>
	</ol>
	<form class="am-form-inline tpl-form-border-form">
		<div class="am-u-sm-12">
			<div class="am-u-sm-10" style="margin-bottom: 10px;">
				<div class="am-u-sm-3">
					<div class="am-u-sm-4 cl-p">乘客：</div>
					<div class="am-u-sm-8">{$item.name}</div>
				</div>
				<div class="am-u-sm-3">
					<div class="am-u-sm-4 cl-p" >余额：</div>
					<div class="am-u-sm-8">{$item.balance}</div>
				</div>
				<div class="am-u-sm-3">
					<div class="am-u-sm-4 cl-p">公务余额：</div>
					<div class="am-u-sm-8">{$item.business_quota}</div>
				</div>
				<div class="am-u-sm-3">
					<div class="am-u-sm-4 cl-p" >单位余额：</div>
					<div class="am-u-sm-8">{$item.unit_quota}</div>
				</div>
			</div>
		</div>
		<div class="am-u-sm-12">
			<div class="am-u-sm-8" style="margin-bottom: 10px;">
				<div class="am-u-sm-1" style="line-height: 35px;">时间：</div>
				<div class="am-u-sm-8 cl-p">
					<div class="am-u-sm-6">
						<input type="text" class="am-form-field tpl-form-no-bg am-margin-top-xs" placeholder="开始时间" data-am-datepicker="" readonly="">
					</div>
					<div class="am-u-sm-6">
						<input type="text" class="am-form-field tpl-form-no-bg am-margin-top-xs" placeholder="结束时间" data-am-datepicker="" readonly="">
					</div>
				</div>
				<div class="am-u-sm-3">
					<button style="margin: 0 auto;" type="button" class="am-btn am-btn-primary am-radius">查询<i class="am-icon-search"></i></button>
				</div>
			</div>
		</div>
		<div class="am-u-sm-12">
			<div class="am-tabs" data-am-tabs>
				<ul class="am-tabs-nav am-nav am-nav-tabs">
					<li class="am-active">
						<a href="#tab1">支付记录</a>
					</li>
					<li>
						<a href="#tab2">充值记录</a>
					</li>
				</ul>

				<div class="am-tabs-bd" style="border: 0;">
					<div class="am-tab-panel am-fade am-in am-active" id="tab1">
						<table width="100%" class="am-table am-table-compact am-text-nowrap tpl-table-black ">
							<thead>
								<tr>
									<th>订单号</th>
									<th>订单类型</th>
									<th>申请时间</th>
									<th>出发地</th>
									<th>目的地</th>
									<th>费用</th>
									<th>订单状态</th>
									<th>详情</th>
								</tr>
							</thead>
							<tbody>
								{foreach $list as $key => $item}
								<tr data-id="{$item.passenger_id}">
									<td>{$item.order_no}</td>
									<td>{$item.order_type}</td>
									<td>{$item.apply_time}</td>
									<td>{$item.departure}</td>
									<td>{$item.destination}</td>
									<td>{$item.settlement_price}</td>
									<td>{$item.order_state}</td>
									<td>
										<a href="/admin/order/details">
											<i class="am-icon-pencil"></i> 查看详情
										</a>
									</td>

								</tr>
								{/foreach}
								<!-- more data -->
							</tbody>

						</table>
					</div>
					<div class="am-tab-panel am-fade" id="tab2">
						<table width="100%" class="am-table am-table-compact am-text-nowrap tpl-table-black ">
							<thead>
								<tr>
									<th>充值单号</th>
									<th>充值时间</th>
									<th>金额</th>
									<th>余额</th>
									<th>来自</th>
								</tr>
							</thead>
							<tbody>
								{foreach $list as $key => $item}
								<tr data-id="{$item.recharge_record_id}">
									<td>{$item.recharge_no}</td>
									<td>{$item.recharge_time}</td>
									<td>{$item.money}</td>
									<td>{$item.balance}</td>
									<td>{$item.role_id}</td>
								</tr>
								{/foreach}
								<!-- more data -->
							</tbody>

						</table>
					</div>
					<div class="am-u-sm-12">
						<button type="button" class="am-btn am-btn-sm am-btn-primary" data-am-modal="{target: '#Coupon', closeViaDimmer: 0, width: 600, height: 500}">查看优惠券</button>
						<button style="margin: 0 auto;" type="button" class="am-btn am-btn-sm am-btn-primary am-radius">发票申请</button>
					</div>

				</div>
			</div>

		</div>
	</form>
</div>
